/**
 * 给定BOx，以及若干局胜负，问决出胜负时打了几局
 * 直接枚举字符串，计数即可
 */
#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace std;

template<typename T>
void input(vector<T> & v, int n){
	v.assign(n + 1, {});
	for(int i=1;i<=n;++i) cin >> v[i];
	return;
}

using Real = long double;
using llt = long long;
using vi = vector<int>;
using pii = pair<int, int>;

string S, T;
int X;
void work(){
    cin >> S >> T;
    X = 0;
	for(auto it=S.begin()+2,et=S.end();it!=et;++it){
		X = X * 10 + (*it ^ '0');
	}

	int k = 0;
	int r = 0, p = 0;
	for(auto c : T){
		++k;
		if(c == 'R'){
			++r;
			if(r + r > X){
				cout << "kou!\n" << k << "\n";
				return;
			}
		}else{
			++p;
			if(p + p > X){
				cout << "yukari!\n" << k << "\n";
				return;
			}
		}
	}
	cout << "to be continued.\n" << k << "\n";
	return;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--) work();
    return 0;
}